home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
system
/
dkcare30.zip
/
INSTALL.BAT
< prev
Wrap
DOS Batch File
|
1995-02-27
|
7KB
|
178 lines
@echo off
cls
If %1a == a goto Syntax
echo.
echo ╔═══════════════════════════════════════════════════════╗
echo ║ WELCOME TO THE INSTALLATION PROGRAM FOR DiskCare v3.0 ║
echo ╚═══════════════════════════════════════════════════════╝
echo.
echo DiskCare v3.0 will be installed to %1
echo.
choice /cyn "Do you wish to continue "
If errorlevel=2 goto alt
If errorlevel=1 goto continue
:continue
echo.
echo ╔══════════════════════════════════════════════════════════════════════════╗
echo ║ WARNING!! ║
echo ║ ║
echo ║ If you are updating DiskCare and you already have a previous version ║
echo ║ installed enter 'y' when it asks wheater to write over the old files. ║
echo ║ ║
echo ╚══════════════════════════════════════════════════════════════════════════╝
echo.
echo Making the %1 directory.
md %1
echo.
echo Unpacking to %1
disk %1
echo.
echo For your Convenience a BATCH file has been provided. If your Destination
echo Directory is different from C:\DISKCARE, then you must edit it. It will
echo be MOVED to C:\DOS.
echo.
echo Press Space Bar To Continue
pause>disk$$$$.tmp
del disk$$$$.tmp
copy %1\disk.bat c:\dos
echo.
goto ansi
choice /c:yn "Whould you like the Installation Files Deleted "
If errorlevel=2 goto ansi
If errorlevel=1 goto next
:next
echo.
echo Deleting Installation files.
echo.
del disk.exe
del file_id.diz
echo Installation Complete. Type 'DISK' to run.
del install.bat
goto end
:alt
cls
echo ╔════════════════════╗
echo ║ ALTERNATE METHOD ╠═══════════════════════════════════════════════════════╗
echo ╚═╦══════════════════╝ ║
echo ║ ║
echo ║ The alternate method for installation is: ║
echo ║ ║
echo ║ 1. Make desired directory. ║
echo ║ 2. Copy/Move DISK.EXE to that Directory. ║
echo ║ 3. Type 'DISK'. This will unpack the program. ║
echo ║ 4. Delete DISK.EXE, FILE_ID.DIZ & INSTALL.BAT ║
echo ║ 5. Copy/Move DISK.BAT to one of the Directories in your PATH statement ║
echo ║ 6. Type 'DISK' to run. ║
echo ╚══════════════════════════════════════════════════════════════════════════╝
echo.
echo Your PATH statement:
echo %path%
echo.
echo DiskCare v3.0 wasn't installed Correctly. Please try again.
goto end
:syntax
echo.
echo.
echo ╔════════════════════╗
echo ║ INSTALLATION ERROR ╠═══════════════════════════════════════════════════════╗
echo ╚═╦══════════════════╝ ║
echo ║ ║
echo ║ The proper syntax to install Diskcare v3.0 is: ║
echo ║ ║
echo ║ INSTALL [DESTINATION] ║
echo ║ ║
echo ║ DESTINATION is the complete path of the directory you wish to install ║
echo ║ DiskCare v3.0 to. ║
echo ║ ║
echo ║ EXAMPLE: ║
echo ║ ║
echo ║ Install C:\DISKCARE ║
echo ║ ║
echo ╚══════════════════════════════════════════════════════════════════════════╝
echo.
echo DiskCare v3.0 wasn't installed Correctly. Please try again.
goto end
:ansi
cls
echo.
echo Checking to see if ANSI.SYS is loaded on your system.
echo.
find /i "ansi.sys" c:\config.sys
If errorlevel=2 goto error
If errorlevel=1 goto no_ansi
If errorlevel=0 goto yes_ansi
:error
echo.
echo ╔══════════════════════════════════════════════════════════════════════════╗
echo ║ WARNING!! ║
echo ║ ║
echo ║ An error has occured while searching for ANSI.SYS on your system. ║
echo ║ You must have the following line in the CONFIG.SYS file. Here is how ║
echo ║ you can add it: ║
echo ║ ║
echo ║ 1. cd\ ║
echo ║ 2. edit config.sys ║
echo ║ 3. Add 'devicehigh=c:\dos\ansi.sys' to the last line. ║
echo ║ ║
echo ╚══════════════════════════════════════════════════════════════════════════╝
echo.
echo DiskCare v3.0 wasn't installed correctly. Please try agian.
echo.
goto end
:no_ansi
echo.
echo ╔══════════════════════════════════════════════════════════════════════════╗
echo ║ WARNING!! ║
echo ║ ║
echo ║ ANSI.SYS is not loaded on your system. ANSI.SYS needs to be loaded in ║
echo ║ order for the colors in DiskCare v3.0 to work. ║
echo ║ ║
echo ╚══════════════════════════════════════════════════════════════════════════╝
echo.
choice /c:yn "Would you like ANSI.SYS to be loaded on your system "
If errorlevel=2 goto bye
If errorlevel=1 goto add_ansi
:add_ansi
%1\addansi
goto bye
:yes_ansi
echo.
echo ANSI.SYS was found on your system. I will assume it is loaded. If the
echo phrase 'REM' is found before the 'DEVICE' statement then your system
echo is ignoring it. The 'REM' will have to be removed.
echo.
:bye
echo.
choice /c:yn "Whould you like the Installation Files Deleted "
If errorlevel=2 goto after
If errorlevel=1 goto next
echo.
:next
echo Deleting Installation files.
echo.
del disk.exe
del file_id.diz
echo Installation Complete. Type 'DISK' to run.
del install.bat
goto end
:after
echo.
echo Installation Complete. Type 'DISK' to run.
echo.
:end
echo.